package com.cnswhy.cloud.server.core.dto;

import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.cnswhy.cloud.common.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.cnswhy.cloud.server.common.entity.enumeration.SplitType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2021-03-02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "CustomerSplitPageDTO", description = "")
public class CustomerSplitPageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 客户ID
     */
    @ApiModelProperty(value = "客户ID")
    @NotNull(message = "客户ID不能为空")
    private Long customerId;
    /**
     * 自定义下级费率
     */
    @ApiModelProperty(value = "自定义下级费率")
    private Long splitRate;
    /**
     * 下级商户号
     */
    @ApiModelProperty(value = "下级商户号")
    private Long downCustomerId;
    /**
     * 下级手机号
     */
    @ApiModelProperty(value = "下级手机号")
    @Length(max = 11, message = "下级手机号长度不能超过11")
    private String downCustomerPhone;
    /**
     * 1：已设置 0未设置
     */
    @ApiModelProperty(value = "1：已设置 0未设置")
    @Length(max = 1, message = "1：已设置 0未设置长度不能超过1")
    private String status;
    /**
     * 下级商户费率
     */
    @ApiModelProperty(value = "下级商户费率")
    private BigDecimal currRate;
    /**
     * 本级分成比例
     */
    @ApiModelProperty(value = "本级分成比例")
    private BigDecimal upRate;
    /**
     * 分润类型
     */
    @ApiModelProperty(value = "分润类型")
    @Length(max = 255, message = "分润类型长度不能超过255")
    private SplitType splitType;

}
